<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://rtc.elef.top/socket.io/socket.io.js"></script>
</head>
<body>
    
    <script>
        let baseUrl = 'https://rtc.elef.top';

        const socket = io(baseUrl);
        const userid = '0101';
        const username = '张三'

        socket.emit('userReg',{userid,username});
        
        socket.on('invitemeeting',data => {
            console.log(data);
            url =  `${baseUrl}/chat.html?creater=${data.mastername}&username=${data.tousername}&room=${data.meetingid}&pdf=${data.pdf}`;
            window.open(url,"互动白板-受邀" + data.tousername);
            console.log("互动白板-受邀");
        });

        
    </script>
</body>
</html>